#ifndef _Included_com_messagesteam_client_RemoteClient
#define _Included_com_messagesteam_client_RemoteClient
#ifdef __cplusplus
extern "C" {
#endif


int sendByteMessage(int action, char* data, int dataLen);
int sendJSONMessage(const char* jsonMessage,int jsonMessageLen);

typedef struct MessageHandler {
	void (*handleJSONMessage)(const char* jsonMessage,int jsonMessageLen);
	void (*handleByteMessage)(int action, char* data, int dataLen);
}MessageHandler;

int regitMessageHandler(MessageHandler* handler);

#ifdef __cplusplus
}
#endif
#endif
